package com.qujia.station.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qujia.station.domain.FinanceStatementEnterprise;
import com.qujia.station.domain.vo.FinanceStatement;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

public interface FinanceStatementEnterpriseMapper extends BaseMapper<FinanceStatementEnterprise> {

    FinanceStatementEnterprise countEnterpriseStatementByDay(@Param("enterpriseId") long enterpriseId,
                                                             @Param("beginTime") LocalDateTime beginTime,
                                                             @Param("endTime") LocalDateTime endTime);

    FinanceStatement countOilDataByDay(@Param("enterpriseId") long enterpriseId,
                                       @Param("beginTime") LocalDateTime beginTime,
                                       @Param("endTime") LocalDateTime endTime);

    FinanceStatement countCardDataByDay(@Param("enterpriseId") long enterpriseId,
                                        @Param("beginTime") LocalDateTime beginTime,
                                        @Param("endTime") LocalDateTime endTime);
}
